//---------------------------------------------------------------------------
#ifndef MatrClassH
#define MatrClassH
//---------------------------------------------------------------------------
#include <vector.h>
#include <Grids.hpp>
//---------------------------------------------------------------------------
typedef vector <int> row;
//---------------------------------------------------------------------------
class CMatr {
private:
	vector <row> m;
	int cc, rc;
public:
	CMatr();
	~CMatr();
	void addCol();
	void addRow();
	void delCol(int index);
	void delRow(int index);
	void inc(int i, int j);
	void dec(int i, int j);
	int get(int i, int j);
	void null(int i, int j);
	void Out(TStringGrid *s);
};
//---------------------------------------------------------------------------
#endif
